<?php

class Database{
	
	var $link;
	
	function connect(){
		$this->link = mysql_connect("localhost", "root", ""); 
		
		if(!$this->link){
			die('Not connected');
		}
		$db = mysql_select_db('matchnrent', $this->link);
		if(!$db){
			die('Unable to connect to database');
		}
		return $this->link;
	}
	function disconnect(){
		mysql_close($this->link);
	}
}

?>